<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:s="http://sduept.security.el/func"
	template="/template/template_dialog.xhtml">
	<ui:define name="head">
		<title>#{request.getParameter('lineName')} 故障报告</title>
		<style>
.ui-widget {
	font-family: "Microsoft JhengHei";
	font-weight: bold;
	font-size: 1.15em;
}

.ui-commandlink {
	font-family: FontAwesome;
}

.ui-panel .ui-panel-content {
	border: 0;
	background: 0;
	padding: 0 !important;
}

.ui-panel .ui-panel-titlebar-icon {
	margin-top: 0;
}

.ui-datatable .ui-datatable-footer {
	text-align: right;
	padding: 4px 10px;
}

.ui-datatable .ui-datatable-header {
	text-align: left;
	/* border-top: 0px;
    border-left: 0px; */
}

.ui-datatable .ui-datatable-data {
	border-top: 0px;
	border-left: 0px;
}

.ui-md-6, .ui-md-12, .ui-g-6, .ui-g-12 {
	padding: 0px !important;
}

/* tr,tr td:first-child,tr th:first-child{
	border-left-width:0px !important;
} */
.box-tools i {
	cursor: pointer;
	color: #999;
	margin-right: 5px;
}

.mouseon {
	cursor: pointer;
}

.box-tools i:hover {
	color: #3FA7DC;
}

.btn {
	padding: 1px 6px;
}

td {
	padding: 9px;
}

.ui-fileupload-icon-only .ui-button-text {
	padding-bottom: .5em;
}
/**
* 分析详情里面的差动电流的title 居中
*/
.title-center .ui-datatable-header {
	text-align: center;
}
</style>
		<link href='/resources/plugins/layer/skin/layer.css' rel='stylesheet' />
	</ui:define>
	<ui:define name="content">
		<h:form id="form1">
			<p:hotkey bind="ctrl+s" update="form1:msgs"
				actionListener="#{acLineFaultReportController.saveReportMain}" />
			<p:growl id="msgs" showDetail="true" />
			<p:confirmDialog global="true" showEffect="fade" hideEffect="fade">
				<p:commandButton value="是" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
				<p:commandButton value="否" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
			</p:confirmDialog>
			<p:toolbar>
				<f:facet name="left">
					<p:commandButton value="返回" icon="ui-icon-triangle-1-w" update="form1:msgs"
						rendered="#{acLineFaultReportController.showBackButton}" onclick="back()" />
					<p:commandButton value="保存" icon="ui-icon-disk" update="form1:msgs stations"
						actionListener="#{acLineFaultReportController.saveReportMain}" />
				</f:facet>
			</p:toolbar>
			<p:panelGrid>
				<p:row>
					<p:column colspan="1">
						<p:outputLabel value="故障设备：" />
					</p:column>
					<p:column>
						<h:outputText value="#{acLineFaultReportController.faultReportMain.faultRecord.equipment}" />
					</p:column>
					<p:column colspan="1">
						<p:outputLabel value="故障时间：" />
					</p:column>
					<p:column style="text-align:left;">
						<h:outputText value="#{acLineFaultReportController.faultReportMain.faultRecord.faultTime}">
							<f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" />
						</h:outputText>
					</p:column>
					<p:column colspan="1">
						<p:outputLabel value="智能分析：" />
					</p:column>
					<p:column style="width:300px;">
						<h:outputText style="white-space:pre-wrap;display:block;"
							value="#{acLineFaultReportController.faultReportMain.faultRecord.thunderInfo}" escape="false" />
						<h:outputText style="white-space:pre-wrap;display:block;"
							value="#{acLineFaultReportController.faultReportMain.faultRecord.iceInfo}" escape="false" />
					</p:column>
					<p:column style="width:10%">
						<p:outputLabel value="过渡电阻：" />
					</p:column>
					<p:column>
						<p:inputNumber value="#{acLineFaultReportController.faultReportMain.faultResistance}"
							inputStyle="width:99%;border:none" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<p:outputLabel value="电压等级：" />
					</p:column>
					<p:column>
						<h:outputText value="#{acLineFaultReportController.faultReportMain.faultRecord.voltage}kV" />
					</p:column>
					<p:column>
						<p:outputLabel value="故障原因分类：" />
					</p:column>
					<p:column>
					  <h:outputText value="#{acLineFaultReportController.faultReportMain.faultRecord.faultReson}" />
					</p:column>
					<p:column>
						<p:outputLabel value="故障原因：" />
					</p:column>
					<p:column style="width:300px;">
						<h:outputText style="white-space:pre-wrap;display:block;"
							value="#{acLineFaultReportController.faultReportMain.faultRecord.remark}" escape="false" />
					</p:column>
					<p:column>
						<p:outputLabel value="录波双端测距(km)：" />
					</p:column>
					<p:column>
						<p:inputNumber value="#{acLineFaultReportController.faultReportMain.doubleResult}"
							inputStyle="width:99%;border:none" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<p:outputLabel value="故障相别：" />
					</p:column>
					<p:column>
						<h:outputText value="#{acLineFaultReportController.faultReportMain.faultRecord.faultPhase}" />
					</p:column>
					<p:column>
						<p:outputLabel value="故障类型：" />
					</p:column>
					<p:column>
						<h:outputText value="#{acLineFaultReportController.faultReportMain.faultRecord.faultType}" />
					</p:column>
					<p:column>
						<p:outputLabel value="故障情况：" />
					</p:column>
					<p:column>
						<p:autoComplete dropdown="true"
							value="#{acLineFaultReportController.faultReportMain.faultCondition}"
							completeMethod="#{cimUtilController.completeFaultCondition}" />
					</p:column>
					<p:column>
						<p:outputLabel value="初步分析结论：" />
					</p:column>
					<p:column>
						<p:autoComplete value="#{acLineFaultReportController.faultReportMain.conclusion}"
							completeMethod="#{cimUtilController.completeFaultAnalysisConclusion}" dropdown="true">
						</p:autoComplete>
					</p:column>
				</p:row>
				<p:row>
				    <p:column>
						<p:outputLabel value="故障原因分类(预测)：" />
					</p:column>
					<p:column>
					  <h:outputText  id="faultForecastReson"  value="#{acLineFaultReportController.faultReportMain.faultRecord.faultForecastReson}" />
					   <p:commandButton   id="modelImage"  icon="ui-icon-image" 
					   style="float:right;font-size:5px;margin:0px;padding:0px;" value="概率对比图" type="button" />
					</p:column>
					<p:column colspan="8">
						<p:commandButton id="svgBtn" icon="ui-icon-image" style="float:right;" value="保护动作图"
							type="button" />
					</p:column>
				</p:row>
			</p:panelGrid>
			<p:overlayPanel modal="true" for="modelImage" hideEffect="fade"
				dynamic="false" style="width:80%;height:520px;">
				<p:panelGrid>
					<!-- <p:commandButton value="更新数据" icon="ui-icon-refresh"
						onclick="document.getElementById('svgIframe').src='protectActSvgGraphic.xhtml?faultId=#{dcLineFaultReportController.faultReportMain.faultRecord.id}'" />
					<small>保存数据后有效 </small> -->
					<iframe id="svgIframe" width="100%" height="460" scrolling="no" frameborder="0"
						src="faultReasonPredictDialog.xhtml?faultId=#{acLineFaultReportController.faultReportMain.faultRecord.id}"></iframe>
				</p:panelGrid>
			</p:overlayPanel>
			<p:overlayPanel id="svgPanel" modal="true" for="svgBtn" hideEffect="fade" dynamic="false"
				style="width:80%;height:520px;">
				<p:panelGrid>
					<p:commandButton value="更新数据" icon="ui-icon-refresh"
						onclick="document.getElementById('svgIframe').src='protectActSvgGraphic.xhtml?faultId=#{acLineFaultReportController.faultReportMain.faultRecord.id}'" />
					<small>保存数据后有效 </small>
					<iframe id="svgIframe" width="100%" height="460" scrolling="no" frameborder="0"
						src="protectActSvgGraphic.xhtml?faultId=#{acLineFaultReportController.faultReportMain.faultRecord.id}"></iframe>
				</p:panelGrid>
			</p:overlayPanel>
			<p:remoteCommand name="onUserDialogReturn"
				update="form1:stations:reportPerson1 form1:stations:reportUnit1 form1:stations:reportPerson2 form1:stations:reportUnit2"
				actionListener="#{acLineFaultReportController.onUserDialogReturn}" />
			<p:remoteCommand name="onAuditorDialogReturn"
				update="form1:stations:auditor1 form1:stations:auditor2"
				actionListener="#{acLineFaultReportController.onAuditorDialogReturn}" />
			<p:remoteCommand name="checkEditPageColsed"
				actionListener="#{acLineFaultReportController.pushTiming}" />
			<p:tabView id="stations">
				<p:ajax event="tabChange" listener="#{acLineFaultReportController.onTabChange}" />
				<p:tab titleStyle="font-weight:bold"
					rendered="#{acLineFaultReportController.firstStationDetail!=null}"
					title="#{acLineFaultReportController.firstStationDetail.stationName}">
					<p:panelGrid id="fpg" style="width:100%;margin-top:5px;">
						<p:toolbar>
							<f:facet name="left">
								<p:commandButton value="编辑变电站" icon="ui-icon-pencil" update="form1:msgs form1:stations"
									disabled="#{acLineFaultReportController.firstStationEdit}"
									actionListener="#{acLineFaultReportController.editStation(acLineFaultReportController.firstStationDetail.id)}"
									onclick="editStationPushTiming()" />
							</f:facet>
						</p:toolbar>
						<p:row>
							<p:column colspan="1">
								<p:outputLabel value="填表单位：" />
							</p:column>
							<p:column colspan="1">
								<h:outputText id="reportUnit1"
									value="#{acLineFaultReportController.firstStationDetail.reportUnit}" />
							</p:column>
							<p:column colspan="1">
								<p:outputLabel value="填表人：" />
							</p:column>
							<p:column colspan="1">
								<h:outputText id="reportPerson1"
									value="#{acLineFaultReportController.firstStationDetail.reportPerson}" />
								<p:commandButton style="float:right"
									disabled="#{!acLineFaultReportController.firstStationEdit}"
									update="form1:stations:reportPerson1 form1:stations:reportUnit1" icon="ui-icon-trash"
									actionListener="#{acLineFaultReportController.resetreportPersonAndUnit()}">
								</p:commandButton>
								<p:commandButton style="float:right"
									disabled="#{!acLineFaultReportController.firstStationEdit}"
									update="reportPerson1 reportUnit1" icon="ui-icon-person"
									actionListener="#{acLineFaultReportController.onUserDialogReturn}" />
							</p:column>
							<p:column colspan="1">
								<p:outputLabel value="审核人：" />
							</p:column>
							<p:column colspan="1">
								<h:outputText id="auditor1"
									value="#{acLineFaultReportController.firstStationDetail.reviewer}" />
								<p:commandButton style="float:right"
									disabled="#{!acLineFaultReportController.firstStationEdit}"
									update="form1:stations:auditor1" icon="ui-icon-trash"
									actionListener="#{acLineFaultReportController.resetreportAuditor()}">
								</p:commandButton>
								<p:commandButton style="float:right" update="auditor1" icon="ui-icon-person"
									disabled="#{!acLineFaultReportController.firstStationEdit}"
									actionListener="#{acLineFaultReportController.onAuditorDialogReturn}" />
							</p:column>
							<p:column colspan="1">
								<p:outputLabel value="上报日期：" />
							</p:column>
							<p:column colspan="1">
								<p:calendar navigator="true" inputStyle="border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}"
									value="#{acLineFaultReportController.firstStationDetail.reportTime}" pattern="yyyy-MM-dd" />
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.reportTime}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="width:14%">
								<font style="color: red">*</font>重合闸成功：</p:column>
							<p:column style="width:12%;">
								<p:selectOneMenu value="#{acLineFaultReportController.firstStationDetail.reclosingSuccess}"
									rendered="#{acLineFaultReportController.firstStationEdit}" style="width:80%;">
									<f:selectItem itemLabel="" itemValue="" />
									<f:selectItem itemLabel="是" itemValue="是" />
									<f:selectItem itemLabel="否" itemValue="否" />
									<f:selectItem itemLabel="不评价" itemValue="不评价" />
								</p:selectOneMenu>
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.reclosingSuccess}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="2">故障持续时间：</p:column>
							<p:column style="font-weight: bold;width:12%">
								<font style="color: red">*</font>初次故障(ms)：</p:column>
							<p:column>
								<p:inputNumber value="#{acLineFaultReportController.firstStationDetail.firstFaultMs}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.firstFaultMs}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;width:15%" rowspan="2">故障电流：</p:column>
							<p:column style="font-weight: bold;width:9%">
								<font style="color: red">*</font>二次值(A)：</p:column>
							<p:column>
								<p:inputText value="#{acLineFaultReportController.firstStationDetail.secondElectricity}"
									style="width:99%;border:none" rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.secondElectricity}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;">
								<font style="color: red">*</font>录波情况：</p:column>
							<p:column style="width:12%;">
								<p:selectOneMenu
									value="#{acLineFaultReportController.firstStationDetail.waveRecordCondition}"
									style="width:80%;" rendered="#{acLineFaultReportController.firstStationEdit}">
									<f:selectItem itemLabel="" itemValue="" />
									<f:selectItem itemLabel="完好" itemValue="完好" />
									<f:selectItem itemLabel="缺" itemValue="缺" />
									<f:selectItem itemLabel="无装置" itemValue="无装置" />
								</p:selectOneMenu>
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.waveRecordCondition}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight:bold;">合于故障(ms)：</p:column>
							<p:column>
								<p:inputNumber value="#{acLineFaultReportController.firstStationDetail.recloseFaultMs}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.recloseFaultMs}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">
								<font style="color: red">*</font>一次值(kA)：</p:column>
							<p:column colspan="2">
								<p:inputText value="#{acLineFaultReportController.firstStationDetail.firstElectricity}"
									style="width:99%;border:none" rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.firstElectricity}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column rowspan="3" style="font-weight: bold;">故障测距：</p:column>
							<p:column style="font-weight: bold;">主一(km)：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.firstStationDetail.manualFaultRangingFirst}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.manualFaultRangingFirst}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="3">录波单端测距(km)：</p:column>
							<p:column rowspan="3">
								<p:inputNumber value="#{acLineFaultReportController.firstStationDetail.manualRangingWave}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.manualRangingWave}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="1">行波单端测距(km)：</p:column>
							<p:column rowspan="1" colspan="1">
								<p:inputNumber value="#{acLineFaultReportController.firstStationDetail.travelingWave}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.travelingWave}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="3">
								行波无双端测距原因简述：
								<h:inputTextarea style="width:100%;" rows="5"
									value="#{acLineFaultReportController.firstStationDetail.travelingDoubleErrorReason}"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel style="width:100%;"
									value="#{acLineFaultReportController.firstStationDetail.travelingDoubleErrorReason}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;width:10%">主二(km)：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.firstStationDetail.manualFaultRangingSecond}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.manualFaultRangingSecond}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="1">行波双端测距(km)：</p:column>
							<p:column rowspan="1" colspan="1">
								<p:inputNumber value="#{acLineFaultReportController.firstStationDetail.travelingWaveDouble}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.travelingWaveDouble}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;width:10%">主三(km)：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.firstStationDetail.manualFaultRangingThird}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.manualFaultRangingThird}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="1">行波测距装置型号：</p:column>
							<p:column rowspan="1" colspan="1">
								<p:inputText
									value="#{acLineFaultReportController.firstStationDetail.travelingEquipmentType}"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.travelingEquipmentType}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
						</p:row>
						<p:row>
							<p:column rowspan="2" style="font-weight: bold;">非周期分量分析：</p:column>
							<p:column style="font-weight: bold;">A相衰减分量：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.firstStationDetail.aphaseDecayingDCcomponent}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.aphaseDecayingDCcomponent}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">B相衰减分量：</p:column>
							<p:column colspan="2">
								<p:inputNumber
									value="#{acLineFaultReportController.firstStationDetail.bphaseDecayingDCcomponent}"
									rendered="#{acLineFaultReportController.firstStationEdit}"
									inputStyle="width:99%;border:none" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.bphaseDecayingDCcomponent}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">C相衰减分量：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.firstStationDetail.cphaseDecayingDCcomponent}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.cphaseDecayingDCcomponent}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;">A相衰减常量：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.firstStationDetail.aphaseAttenuationConstant}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.aphaseAttenuationConstant}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">B相衰减常量：</p:column>
							<p:column colspan="2">
								<p:inputNumber
									value="#{acLineFaultReportController.firstStationDetail.bphaseAttenuationConstant}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.bphaseAttenuationConstant}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold">C相衰减常量：</p:column>
							<p:column colspan="3">
								<p:inputNumber
									value="#{acLineFaultReportController.firstStationDetail.cphaseAttenuationConstant}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.cphaseAttenuationConstant}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;">快速保护分析：</p:column>
							<p:column style="font-weight: bold;">
								<font style="color: red">*</font>快速保护是否动作：
							</p:column>
							<p:column>
								<p:selectOneMenu value="#{acLineFaultReportController.firstStationDetail.rapidProtection}"
									style="width:80%;" rendered="#{acLineFaultReportController.firstStationEdit}">
									<f:selectItem itemLabel="" itemValue="" />
									<f:selectItem itemLabel="是" itemValue="是" />
									<f:selectItem itemLabel="否" itemValue="否" />
								</p:selectOneMenu>
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.rapidProtection}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">
								<font style="color: red">*</font>快速保护应评价次数：</p:column>
							<p:column colspan="2">
								<p:spinner min="0"
									value="#{acLineFaultReportController.firstStationDetail.rapidProtectionShould}"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.rapidProtectionShould}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold">
								<font style="color: red">*</font>实际快速动作次数：</p:column>
							<p:column colspan="2">
								<p:spinner min="0"
									value="#{acLineFaultReportController.firstStationDetail.rapidActionReality}"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.firstStationDetail.rapidActionReality}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;">保护动作分析结论：</p:column>
							<p:column style="font-weight: bold;">正确次数(含总出口)：</p:column>
							<p:column>
								<p:spinner min="0"
									value="#{acLineFaultReportController.firstStationDetail.protectRightActionCount}"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.protectRightActionCount}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">误动次数：</p:column>
							<p:column colspan="2">
								<p:spinner min="0"
									value="#{acLineFaultReportController.firstStationDetail.protectUnwantedActionCount}"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.protectUnwantedActionCount}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">拒动次数：</p:column>
							<p:column>
								<p:spinner min="0"
									value="#{acLineFaultReportController.firstStationDetail.protectRefuseActionCount}"
									rendered="#{acLineFaultReportController.firstStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.firstStationDetail.protectRefuseActionCount}"
									rendered="#{!acLineFaultReportController.firstStationEdit}" />
							</p:column>
						</p:row>
					</p:panelGrid>
					<p:toolbar style="margin-top:8px">
						<f:facet name="left">
							<p:commandButton value="添加元件" disabled="#{!acLineFaultReportController.firstStationEdit}"
								actionListener="#{acLineFaultReportController.addActionComponent()}"
								update="form1:stations:fcdt" icon="ui-icon-document" />
							<p:commandButton value="删除" disabled="#{!acLineFaultReportController.firstStationEdit}"
								actionListener="#{acLineFaultReportController.deleteFirstSelectComponentList()}"
								update="form1:stations:fcdt" icon="ui-icon-trash">
								<p:confirm header="提示" message="确定删除选择的记录吗？" icon="ui-icon-alert" />
							</p:commandButton>
						</f:facet>
					</p:toolbar>
					<p:dataTable id="fcdt" widgetVar="dt" var="componts"
						selection="#{acLineFaultReportController.firstSelectComponentList}"
						value="#{acLineFaultReportController.firstComponentList}" rowKey="#{componts.id}"
						emptyMessage="无记录">
						<p:ajax event="rowSelect" listener="#{acLineFaultReportController.onActionComponentRowSelect}" />
						<f:facet name="header">
						     	 元件动作详情
						</f:facet>
						<p:column selectionMode="multiple" style="width:55px;text-align:center" />
						<p:column headerText="保护名称">
							<p:autoComplete completeMethod="#{acLineFaultReportController.completeProtectName}"
								dropdown="true" inputStyle="width:99%" value="#{componts.protectName}"
								rendered="#{acLineFaultReportController.firstStationEdit}">
								<p:ajax event="itemSelect" update="fcdt"
									listener="#{acLineFaultReportController.handleProtectSelect}" />
							</p:autoComplete>
							<p:outputLabel value="#{componts.protectName}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="保护类型">
							<p:autoComplete completeMethod="#{cimUtilController.completeProtectType}" dropdown="true"
								inputStyle="width:99%" value="#{componts.protectType}"
								rendered="#{acLineFaultReportController.firstStationEdit}" />
							<p:outputLabel value="#{componts.protectType}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="保护型号">
							<p:inputText style="width:99%;border:none;" value="#{componts.protectModel}"
								rendered="#{acLineFaultReportController.firstStationEdit}" />
							<p:outputLabel value="#{componts.protectModel}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="动作元件">
							<p:autoComplete scrollHeight="300"
								completeMethod="#{acLineFaultReportController.completeActionComponent(componts)}"
								dropdown="true" inputStyle="width:99%" value="#{componts.actionComponent}"
								rendered="#{acLineFaultReportController.firstStationEdit}">
								<p:ajax event="itemSelect" update="fcdt"
									listener="#{acLineFaultReportController.handleComponentSelect}" />
							</p:autoComplete>
							<p:outputLabel value="#{componts.actionComponent}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="功能分类">
							<p:autoComplete completeMethod="#{cimUtilController.completeFunctionType}" dropdown="true"
								inputStyle="width:99%" value="#{componts.funClassification}"
								rendered="#{acLineFaultReportController.firstStationEdit}" />
							<p:outputLabel value="#{componts.funClassification}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="动作时间（毫秒）">
							<p:inputNumber inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.actionTime}" rendered="#{acLineFaultReportController.firstStationEdit}" />
							<p:outputLabel value="#{componts.actionTime}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="动作情况">
							<p:autoComplete completeMethod="#{acLineFaultReportController.completeActionCondition}"
								dropdown="true" inputStyle="width:99%"
								rendered="#{acLineFaultReportController.firstStationEdit}"
								value="#{componts.actionCondition}" />
							<p:outputLabel value="#{componts.actionCondition}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="备注">
							<p:autoComplete completeMethod="#{acLineFaultReportController.completeActionComponentRemark}"
								dropdown="true" inputStyle="width:99%;"
								rendered="#{acLineFaultReportController.firstStationEdit}" value="#{componts.remark}" />
							<p:outputLabel value="#{componts.remark}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
					</p:dataTable>
					<p:toolbar style="margin-top:8px">
						<f:facet name="left">
							<p:commandButton value="添加主保护"
								disabled="#{!acLineFaultReportController.firstStationEdit}"
								oncomplete="openNeedDeviceDialog('zbhdz','#{acLineFaultReportController.faultReportMain.faultRecord.equipment_id}','#{acLineFaultReportController.firstStationDetail.stationId}');"
								icon="ui-icon-document" />
							<p:remoteCommand name="onDeviceDialogReturn"
								actionListener="#{acLineFaultReportController.onDeviceDialogReturn}" />
							<p:commandButton value="添加断路器保护"
								disabled="#{!acLineFaultReportController.firstStationEdit}"
								onclick="openNeedDeviceDialog('dlqbhdzxx','#{acLineFaultReportController.faultReportMain.faultRecord.equipment_id}','#{acLineFaultReportController.firstStationDetail.stationId}');"
								icon="ui-icon-document" />
							<p:commandButton value="添加断路器"
								disabled="#{!acLineFaultReportController.firstStationEdit}"
								onclick="openNeedDeviceDialog('dlqdzxx','#{acLineFaultReportController.faultReportMain.faultRecord.equipment_id}','#{acLineFaultReportController.firstStationDetail.stationId}');"
								icon="ui-icon-document" />
							<p:commandButton value="删除"
								disabled="#{!acLineFaultReportController.firstStationEdit}"
								update="form1:stations:fdt form1:stations:fbdt"
								actionListener="#{acLineFaultReportController.deleteFirstSelectActionProcess()}"
								icon="ui-icon-trash">
								<p:confirm header="提示" message="确定删除选择的记录吗？"
									icon="ui-icon-alert" />
							</p:commandButton>
							<p:commandButton icon="ui-icon-help" value="帮助"
								oncomplete="alertProtectTip()" />
						</f:facet>
						<f:facet name="right">
							<p:selectBooleanCheckbox
								value="#{acLineFaultReportController.showFirstTableAllColumns}"
								itemLabel="显示全部">
								<p:ajax event="change" process="@this"
									update="form1:stations:fdt form1:stations:fbdt"></p:ajax>
							</p:selectBooleanCheckbox>
						</f:facet>
					</p:toolbar>
					<p:dataTable id="fdt" widgetVar="fdt"
						selection="#{acLineFaultReportController.firstSelectedProtectDeviceActionProcessList}"
						var="componts"
						value="#{acLineFaultReportController.firstProtectDeviceActionProcessList}"
						rowKey="#{componts.id}" emptyMessage="无记录">
						<f:facet name="header">
						     	 保护动作详情
						</f:facet>
						<p:column selectionMode="multiple"
							style="width:55px;text-align:center" />
						<p:column headerText="设备类型" width="8%" groupRow="true">
							<p:outputLabel value="#{componts.devType}" />
						</p:column>
						<p:column headerText="设备名称" width="18%">
							<p:outputLabel value="#{componts.devName}" />
						</p:column>
						<p:column headerText="设备型号">
							<p:outputLabel value="#{componts.devModel}" />
						</p:column>
						<p:column headerText="跳A(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','A')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.firstStationEdit}"
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripA}" />
							<p:outputLabel value="#{componts.fTripA}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="跳B(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','B')}">
							<p:inputNumber
								inputStyle="color:green;width:99%;border:none;text-align:center"
								rendered="#{acLineFaultReportController.firstStationEdit}"
								value="#{componts.fTripB}" />
							<p:outputLabel value="#{componts.fTripB}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="跳C(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','C')}">
							<p:inputNumber
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripC}"
								rendered="#{acLineFaultReportController.firstStationEdit}" />
							<p:outputLabel value="#{componts.fTripC}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="重合信号(毫秒)"
							rendered="#{acLineFaultReportController.isShow('reclose','')}">
							<p:outputLabel rendered="#{'主保护'.equals(componts.devType)}"
								style="color:blue;width:99%;border:none;text-align:center"
								value="------" />
							<p:inputNumber
								rendered="#{!'主保护'.equals(componts.devType) and acLineFaultReportController.firstStationEdit}"
								inputStyle="color:blue;width:99%;border:none;text-align:center"
								value="#{componts.recolse}" />
							<p:outputLabel value="#{componts.recolse}"
								rendered="#{!'主保护'.equals(componts.devType) and !acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="跳A(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','A')}">
							<p:inputNumber
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripA}"
								rendered="#{acLineFaultReportController.firstStationEdit}" />
							<p:outputLabel value="#{componts.sTripA}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="跳B(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','B')}">
							<p:inputNumber
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripB}"
								rendered="#{acLineFaultReportController.firstStationEdit}" />
							<p:outputLabel value="#{componts.sTripB}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="跳C(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','C')}">
							<p:inputNumber
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripC}"
								rendered="#{acLineFaultReportController.firstStationEdit}" />
							<p:outputLabel value="#{componts.sTripC}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
					</p:dataTable>
					<p:dataTable id="fbdt" widgetVar="fbdt"
						selection="#{acLineFaultReportController.firstSelectedBreakerDeviceActionProcessList}"
						var="componts"
						value="#{acLineFaultReportController.firstBreakerDeviceActionProcessList}"
						rowKey="#{componts.id}" emptyMessage="无记录">
						<f:facet name="header">
						     	 断路器动作详情
						</f:facet>
						<p:column selectionMode="multiple"
							style="width:55px;text-align:center" />
						<p:column headerText="设备类型" width="8%" groupRow="true">
							<p:outputLabel value="#{componts.devType}" />
						</p:column>
						<p:column headerText="设备名称" width="18%">
							<p:outputLabel value="#{componts.devName}" />
						</p:column>
						<p:column headerText="设备型号">
							<p:outputLabel value="#{componts.devModel}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','A')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.firstStationEdit}"
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripA}" />
							<p:outputLabel value="#{componts.fTripA}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','B')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.firstStationEdit}"
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripB}" />
							<p:outputLabel value="#{componts.fTripB}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','C')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.firstStationEdit}"
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripC}" />
							<p:outputLabel value="#{componts.fTripC}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="重合(毫秒)"
							rendered="#{acLineFaultReportController.isShow('reclose','')}">
							<p:outputLabel rendered="#{'主保护'.equals(componts.devType)}"
								style="color:blue;width:99%;border:none;text-align:center"
								value="------" />
							<p:inputNumber
								rendered="#{!'主保护'.equals(componts.devType) and acLineFaultReportController.firstStationEdit}"
								inputStyle="color:blue;width:99%;border:none;text-align:center"
								value="#{componts.recolse}" />
							<p:outputLabel value="#{componts.recolse}"
								rendered="#{!'主保护'.equals(componts.devType) and !acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','A')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.firstStationEdit}"
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripA}" />
							<p:outputLabel value="#{componts.sTripA}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','B')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.firstStationEdit}"
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripB}" />
							<p:outputLabel value="#{componts.sTripA}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','C')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.firstStationEdit}"
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripC}" />
							<p:outputLabel value="#{componts.sTripC}"
								rendered="#{!acLineFaultReportController.firstStationEdit}" />
						</p:column>
					</p:dataTable>
					<p:toolbar id="fUploadWaveFileToolbar">
						<f:facet name="left">
							<p:commandButton value="上传录波文件" disabled="#{!acLineFaultReportController.firstStationEdit}"
								icon="ui-icon-arrowreturnthick-1-n" update="form1:msgs dialogForm:uploadWaveFileDialog"
								actionListener="#{waveFileController.resetUploadMsg}"
								rendered="#{s:hasPermission(session,'bhyx_gzda_lbwj_sc')}"
								oncomplete="PF('uploadWaveFileDialog').show()" />
							<p:commandButton value="下载录波文件" icon="ui-icon-arrowthick-1-s" ajax="false"
								rendered="#{s:hasPermission(session,'bhyx_gzda_lbwj_xz')}"
								actionListener="#{waveFileController.prepareDownloadFile(acLineFaultReportController.firstStationDetail.stationId)}">
								<p:fileDownload value="#{waveFileController.downloadFile}" />
							</p:commandButton>
						</f:facet>
					</p:toolbar>
					<p:dataTable id="fWaveFileTable" var="item"
						value="#{waveFileController.getWaveFileByStationId(acLineFaultReportController.firstStationDetail.stationId)}"
						rowKey="#{item.id}" emptyMessage="无记录" rowIndexVar="ite">
						<f:facet name="header">
						     录波文件
						</f:facet>
						<p:column width="2" headerText="序号 " style="text-align:center">
							<h:outputText value="#{ite+1}" />
						</p:column>
						<p:column width="10" headerText="时间">
							<h:outputText value="#{item.triggerSecond.substring(0,19)}">
							</h:outputText>
						</p:column>
						<p:column width="10" headerText="变电站名称">
							<h:outputText value="#{item.stationName}" />
						</p:column>
						<p:column width="10" headerText="装置">
							<h:outputText value="#{item.equipment}" />
						</p:column>
						<p:column width="50" headerText="录波文件">
							<h:outputText value="#{item.path}" />
						</p:column>
						<p:column width="5" headerText="分析状态">
							<h:outputText value="#{item.status}" />
						</p:column>
						<p:column width="5" headerText="文件来源">
							<h:outputText rendered="#{item.dataSource == 0}" value="系统获取" />
							<h:outputText rendered="#{item.dataSource == 1}" value="人工上传" />
						</p:column>
						<p:column width="10" headerText="查看" style="text-align:center">
							<p:commandButton icon="ui-icon-search"
								oncomplete="openWaveDlg('#{item.id}', '#{acLineFaultReportController.firstStationDetail.stationId}','#{item.stationName}','#{acLineFaultReportController.fr.equipment_id}');" />
						</p:column>
					</p:dataTable>
					<p:toolbar id="fUploadFileToolbar" style="margin-top:8px">
						<f:facet name="left">
							<p:commandButton title="上传" disabled="#{!acLineFaultReportController.firstStationEdit}"
								update="form1:msgs dialogForm:uploadAttachmentDialog" icon="ui-icon-arrowreturnthick-1-n"
								value="上传" oncomplete="PF('uploadAttachmentDialog').show()"
								rendered="#{s:hasPermission(session,'bhyx_gzda_gzfj_sc')}">
							</p:commandButton>
							<p:commandButton value="下载" ajax="false"
								rendered="#{s:hasPermission(session,'bhyx_gzda_gzfj_xz')}"
								actionListener="#{acLineFaultReportController.downloadAttachment()}"
								icon="ui-icon-arrowthick-1-s" update="form1:msgs">
								<p:fileDownload value="#{acLineFaultReportController.file}" />
							</p:commandButton>
							<p:commandButton value="删除" disabled="#{!acLineFaultReportController.firstStationEdit}"
								rendered="#{s:hasPermission(session,'bhyx_gzda_gzfj_sc1')}"
								actionListener="#{acLineFaultReportController.deleteAttachment()}" update="fat"
								icon="ui-icon-trash">
								<p:confirm header="提示" message="确定删除选择的记录吗？" icon="ui-icon-alert" />
							</p:commandButton>
						</f:facet>
					</p:toolbar>
					<p:dataTable id="fat" var="componts" widgetVar="fat" rowIndexVar="ite"
						selection="#{acLineFaultReportController.selectedAttachments1}"
						value="#{acLineFaultReportController.attachments1}" rowKey="#{componts.id}" emptyMessage="无记录">
						<f:facet name="header">
						     保护动作报告附件
						</f:facet>
						<p:column selectionMode="multiple" selectRow="false" width="10" style="text-align:center" />
						<p:column headerText="序号" width="10">
							<p:outputLabel value="#{ite+1}" />
						</p:column>
						<p:column headerText="名称" width="90">
							<p:outputLabel value="#{componts.name}" />
						</p:column>
						<p:column headerText="缩略图" width="18%">
							<p:graphicImage alt="加载失败" rendered="#{acLineFaultReportController.isPicture(componts)}"
								height="100"
								value="#{request.contextPath}/getServerImage?fullPath=#{acLineFaultReportController.getVirtualPath(componts.path)}" />
						</p:column>
						<p:column width="10" style="text-align: center">
							<p:commandButton icon="ui-icon-search"
								rendered="#{acLineFaultReportController.isPicture(componts)}"
								oncomplete="openImagePage('#{acLineFaultReportController.getVirtualPath(componts.path)}');" />
						</p:column>
					</p:dataTable>
				</p:tab>
				<!-- ============================================================华丽的分割线=========================================================== -->
				<p:tab titleStyle="font-weight:bold"
					rendered="#{acLineFaultReportController.secondStationDetail!=null}"
					title="#{acLineFaultReportController.secondStationDetail.stationName}">
					<p:panelGrid id="spg" style="width:100%;margin-top:5px;">
						<p:toolbar>
							<f:facet name="left">
								<p:commandButton value="编辑变电站" icon="ui-icon-pencil" update="form1:msgs form1:stations"
									disabled="#{acLineFaultReportController.secondStationEdit}"
									actionListener="#{acLineFaultReportController.editStation(acLineFaultReportController.secondStationDetail.id)}"
									onclick="editStationPushTiming()" />
							</f:facet>
						</p:toolbar>
						<p:row>
							<p:column colspan="1">
								<p:outputLabel value="填表单位：" />
							</p:column>
							<p:column colspan="1">
								<h:outputText id="reportUnit2"
									value="#{acLineFaultReportController.secondStationDetail.reportUnit}"
									style="width:99%;border:none" />
							</p:column>
							<p:column colspan="1">
								<p:outputLabel value="填表人：" />
							</p:column>
							<p:column colspan="1">
								<h:outputText id="reportPerson2"
									value="#{acLineFaultReportController.secondStationDetail.reportPerson}"
									style="width:99%;border:none">
								</h:outputText>
								<p:commandButton style="float:right"
									disabled="#{!acLineFaultReportController.secondStationEdit}"
									update="reportPerson2 reportUnit2" icon="ui-icon-trash"
									actionListener="#{acLineFaultReportController.resetreportPersonAndUnit()}">
								</p:commandButton>
								<p:commandButton style="float:right"
									disabled="#{!acLineFaultReportController.secondStationEdit}"
									update="reportPerson2 reportUnit2" icon="ui-icon-person"
									actionListener="#{acLineFaultReportController.onUserDialogReturn}" />
							</p:column>
							<p:column colspan="1">
								<p:outputLabel value="审核人：" />
							</p:column>
							<p:column colspan="1">
								<h:outputText id="auditor2"
									value="#{acLineFaultReportController.secondStationDetail.reviewer}"
									style="width:99%;border:none" onclick="PF('personDialog').show()">
								</h:outputText>
								<p:commandButton style="float:right"
									disabled="#{!acLineFaultReportController.secondStationEdit}"
									update="form1:stations:auditor2" icon="ui-icon-trash"
									actionListener="#{acLineFaultReportController.resetreportAuditor()}">
								</p:commandButton>
								<p:commandButton style="float:right" update="auditor2" icon="ui-icon-person"
									disabled="#{!acLineFaultReportController.secondStationEdit}"
									actionListener="#{acLineFaultReportController.onAuditorDialogReturn}" />
							</p:column>
							<p:column colspan="1">
								<p:outputLabel value="上报日期：" />
							</p:column>
							<p:column colspan="1">
								<p:calendar navigator="true" inputStyle="border:none"
									value="#{acLineFaultReportController.secondStationDetail.reportTime}" pattern="yyyy-MM-dd"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.reportTime}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="width:14%">
								<font style="color: red">*</font>重合闸成功：</p:column>
							<p:column style="width:12%;">
								<p:selectOneMenu value="#{acLineFaultReportController.secondStationDetail.reclosingSuccess}"
									style="width:80%;" rendered="#{acLineFaultReportController.secondStationEdit}">
									<f:selectItem itemLabel="" itemValue="" />
									<f:selectItem itemLabel="是" itemValue="是" />
									<f:selectItem itemLabel="否" itemValue="否" />
									<f:selectItem itemLabel="不评价" itemValue="不评价" />
								</p:selectOneMenu>
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.reclosingSuccess}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="2">故障持续时间：</p:column>
							<p:column style="font-weight: bold;width:12%">
								<font style="color: red">*</font>初次故障(ms)：</p:column>
							<p:column>
								<p:inputNumber value="#{acLineFaultReportController.secondStationDetail.firstFaultMs}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.firstFaultMs}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;width:15%" rowspan="2">故障电流：</p:column>
							<p:column style="font-weight: bold;width:9%">
								<font style="color: red">*</font>二次值(A)：</p:column>
							<p:column>
								<p:inputText value="#{acLineFaultReportController.secondStationDetail.secondElectricity}"
									style="width:99%;border:none" rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.secondElectricity}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;">
								<font style="color: red">*</font>录波情况：</p:column>
							<p:column style="width:12%;">
								<p:selectOneMenu
									value="#{acLineFaultReportController.secondStationDetail.waveRecordCondition}"
									style="width:80%;" rendered="#{acLineFaultReportController.secondStationEdit}">
									<f:selectItem itemLabel="" itemValue="" />
									<f:selectItem itemLabel="完好" itemValue="完好" />
									<f:selectItem itemLabel="缺" itemValue="缺" />
									<f:selectItem itemLabel="无装置" itemValue="无装置" />
								</p:selectOneMenu>
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.waveRecordCondition}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight:bold;">合于故障(ms)：</p:column>
							<p:column>
								<p:inputNumber value="#{acLineFaultReportController.secondStationDetail.recloseFaultMs}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.recloseFaultMs}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">
								<font style="color: red">*</font>一次值(kA)：</p:column>
							<p:column colspan="2">
								<p:inputText value="#{acLineFaultReportController.secondStationDetail.firstElectricity}"
									style="width:99%;border:none" rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.firstElectricity}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column rowspan="3" style="font-weight: bold;">故障测距：</p:column>
							<p:column style="font-weight: bold;">主一(km)：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.secondStationDetail.manualFaultRangingFirst}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.manualFaultRangingFirst}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="3">录波单端测距(km)：</p:column>
							<p:column rowspan="3">
								<p:inputNumber value="#{acLineFaultReportController.secondStationDetail.manualRangingWave}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.manualRangingWave}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="1">行波单端测距(km)：</p:column>
							<p:column rowspan="1" colspan="1">
								<p:inputNumber value="#{acLineFaultReportController.secondStationDetail.travelingWave}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.travelingWave}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="3">
								行波无双端测距原因简述：
								<h:inputTextarea style="width:100%;" rows="5"
									value="#{acLineFaultReportController.secondStationDetail.travelingDoubleErrorReason}"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.travelingDoubleErrorReason}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;width:10%">主二(km)：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.secondStationDetail.manualFaultRangingSecond}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.manualFaultRangingSecond}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="1">行波双端测距(km)：</p:column>
							<p:column rowspan="1" colspan="1">
								<p:inputNumber
									value="#{acLineFaultReportController.secondStationDetail.travelingWaveDouble}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.travelingWaveDouble}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;width:10%">主三(km)：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.secondStationDetail.manualFaultRangingThird}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.manualFaultRangingThird}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;" rowspan="1">行波测距装置型号：</p:column>
							<p:column rowspan="1" colspan="1">
								<p:inputText
									value="#{acLineFaultReportController.secondStationDetail.travelingEquipmentType}"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.travelingEquipmentType}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column rowspan="2" style="font-weight: bold;">非周期分量分析：</p:column>
							<p:column style="font-weight: bold;">A相衰减分量：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.secondStationDetail.aphaseDecayingDCcomponent}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.aphaseDecayingDCcomponent}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">B相衰减分量：</p:column>
							<p:column colspan="2">
								<p:inputNumber
									value="#{acLineFaultReportController.secondStationDetail.bphaseDecayingDCcomponent}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.bphaseDecayingDCcomponent}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column inputStyle="font-weight: bold;">C相衰减分量：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.secondStationDetail.cphaseDecayingDCcomponent}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.cphaseDecayingDCcomponent}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;">A相衰减常量：</p:column>
							<p:column>
								<p:inputNumber
									value="#{acLineFaultReportController.secondStationDetail.aphaseAttenuationConstant}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.aphaseAttenuationConstant}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">B相衰减常量：</p:column>
							<p:column colspan="2">
								<p:inputNumber
									value="#{acLineFaultReportController.secondStationDetail.bphaseAttenuationConstant}"
									inputStyle="width:99%;border:none"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.bphaseAttenuationConstant}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold">C相衰减常量：</p:column>
							<p:column colspan="3">
								<p:inputNumber rendered="#{acLineFaultReportController.secondStationEdit}"
									value="#{acLineFaultReportController.secondStationDetail.cphaseAttenuationConstant}"
									inputStyle="width:99%;border:none" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.cphaseAttenuationConstant}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;">快速保护分析：</p:column>
							<p:column style="font-weight: bold;">
								<font style="color: red">*</font>快速保护是否动作：</p:column>
							<p:column>
								<p:selectOneMenu value="#{acLineFaultReportController.secondStationDetail.rapidProtection}"
									style="width:80%;" rendered="#{acLineFaultReportController.secondStationEdit}">
									<f:selectItem itemLabel="" itemValue="" />
									<f:selectItem itemLabel="是" itemValue="是" />
									<f:selectItem itemLabel="否" itemValue="否" />
								</p:selectOneMenu>
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.rapidProtection}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">
								<font style="color: red">*</font>快速保护应评价次数：</p:column>
							<p:column colspan="2">
								<p:spinner value="#{acLineFaultReportController.secondStationDetail.rapidProtectionShould}"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.rapidProtectionShould}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold">
								<font style="color: red">*</font>实际快速动作次数：</p:column>
							<p:column colspan="2">
								<p:spinner value="#{acLineFaultReportController.secondStationDetail.rapidActionReality}"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel value="#{acLineFaultReportController.secondStationDetail.rapidActionReality}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column style="font-weight: bold;">保护动作分析结论：</p:column>
							<p:column style="font-weight: bold;">正确次数(含总出口)：</p:column>
							<p:column>
								<p:spinner min="0"
									value="#{acLineFaultReportController.secondStationDetail.protectRightActionCount}"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.protectRightActionCount}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">误动次数：</p:column>
							<p:column colspan="2">
								<p:spinner min="0"
									value="#{acLineFaultReportController.secondStationDetail.protectUnwantedActionCount}"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.protectUnwantedActionCount}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
							<p:column style="font-weight: bold;">拒动次数：</p:column>
							<p:column>
								<p:spinner min="0"
									value="#{acLineFaultReportController.secondStationDetail.protectRefuseActionCount}"
									rendered="#{acLineFaultReportController.secondStationEdit}" />
								<p:outputLabel
									value="#{acLineFaultReportController.secondStationDetail.protectRefuseActionCount}"
									rendered="#{!acLineFaultReportController.secondStationEdit}" />
							</p:column>
						</p:row>
					</p:panelGrid>
					<p:toolbar style="margin-top:8px">
						<f:facet name="left">
							<p:commandButton value="添加元件" disabled="#{!acLineFaultReportController.secondStationEdit}"
								actionListener="#{acLineFaultReportController.addActionComponent()}"
								update="form1:stations:scdt" icon="ui-icon-document" />
							<p:commandButton value="删除" disabled="#{!acLineFaultReportController.secondStationEdit}"
								actionListener="#{acLineFaultReportController.deleteSecondSelectComponentList()}"
								update="form1:stations:scdt" icon="ui-icon-trash">
								<p:confirm header="提示" message="确定删除选择的记录吗？" icon="ui-icon-alert" />
							</p:commandButton>
						</f:facet>
					</p:toolbar>
					<p:dataTable id="scdt" widgetVar="scdt" var="componts"
						selection="#{acLineFaultReportController.secondSelectComponentList}"
						value="#{acLineFaultReportController.secondComponentList}" rowKey="#{componts.id}"
						emptyMessage="无记录">
						<p:ajax event="rowSelect" listener="#{acLineFaultReportController.onActionComponentRowSelect}" />
						<f:facet name="header">
						     	 元件动作详情
						 	</f:facet>
						<p:column selectionMode="multiple" style="width:55px;text-align:center" />
						<p:column headerText="保护名称">
							<p:autoComplete completeMethod="#{acLineFaultReportController.completeProtectName}"
								dropdown="true" inputStyle="width:99%" value="#{componts.protectName}"
								rendered="#{acLineFaultReportController.secondStationEdit}">
								<p:ajax event="itemSelect" update="scdt"
									listener="#{acLineFaultReportController.handleProtectSelect}" />
							</p:autoComplete>
							<p:outputLabel value="#{componts.protectName}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="保护类型">
							<p:autoComplete completeMethod="#{cimUtilController.completeProtectType}" dropdown="true"
								inputStyle="width:99%" value="#{componts.protectType}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.protectType}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="保护型号">
							<p:inputText style="width:99%;border:none;" value="#{componts.protectModel}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.protectModel}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="动作元件">
							<p:autoComplete scrollHeight="300"
								completeMethod="#{acLineFaultReportController.completeActionComponent(componts)}"
								dropdown="true" inputStyle="width:99%" value="#{componts.actionComponent}"
								rendered="#{acLineFaultReportController.secondStationEdit}">
								<p:ajax event="itemSelect" update="scdt"
									listener="#{acLineFaultReportController.handleComponentSelect}" />
							</p:autoComplete>
							<p:outputLabel value="#{componts.actionComponent}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="功能分类">
							<p:autoComplete completeMethod="#{cimUtilController.completeFunctionType}" dropdown="true"
								inputStyle="width:99%" value="#{componts.funClassification}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.funClassification}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="动作时间（毫秒）">
							<p:inputNumber inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.actionTime}" rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.actionTime}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="动作情况">
							<p:autoComplete completeMethod="#{acLineFaultReportController.completeActionCondition}"
								dropdown="true" inputStyle="width:99%" value="#{componts.actionCondition}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.actionCondition}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="备注">
							<p:autoComplete completeMethod="#{acLineFaultReportController.completeActionComponentRemark}"
								dropdown="true" inputStyle="width:99%;" value="#{componts.remark}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.remark}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
					</p:dataTable>
					<p:toolbar style="margin-top:8px">
						<f:facet name="left">
							<p:commandButton value="添加主保护"
								disabled="#{!acLineFaultReportController.secondStationEdit}"
								onclick="openNeedDeviceDialog('zbhdz','#{acLineFaultReportController.faultReportMain.faultRecord.equipment_id}','#{acLineFaultReportController.secondStationDetail.stationId}');"
								icon="ui-icon-document" />
							<p:remoteCommand name="onDeviceDialogReturn"
								actionListener="#{acLineFaultReportController.onDeviceDialogReturn}" />
							<p:commandButton value="添加断路器保护"
								disabled="#{!acLineFaultReportController.secondStationEdit}"
								onclick="openNeedDeviceDialog('dlqbhdzxx','#{acLineFaultReportController.faultReportMain.faultRecord.equipment_id}','#{acLineFaultReportController.secondStationDetail.stationId}');"
								icon="ui-icon-document" />
							<p:commandButton value="添加断路器"
								disabled="#{!acLineFaultReportController.secondStationEdit}"
								onclick="openNeedDeviceDialog('dlqdzxx','#{acLineFaultReportController.faultReportMain.faultRecord.equipment_id}','#{acLineFaultReportController.secondStationDetail.stationId}');"
								icon="ui-icon-document" />
							<p:commandButton value="删除"
								disabled="#{!acLineFaultReportController.secondStationEdit}"
								update="form1:stations:sdt form1:stations:sbdt"
								actionListener="#{acLineFaultReportController.deleteSecondSelectActionProcess()}"
								icon="ui-icon-trash">
								<p:confirm header="提示" message="确定删除选择的记录吗？"
									icon="ui-icon-alert" />
							</p:commandButton>
							<p:commandButton icon="ui-icon-help" value="帮助"
								oncomplete="alertProtectTip()" />
						</f:facet>
						<f:facet name="right">
							<p:selectBooleanCheckbox
								value="#{acLineFaultReportController.showSecondTableAllColumns}"
								itemLabel="显示全部">
								<p:ajax event="change" process="@this"
									update="form1:stations:sdt form1:stations:sbdt"></p:ajax>
							</p:selectBooleanCheckbox>
						</f:facet>
					</p:toolbar>
					<p:dataTable id="sdt" widgetVar="sdt" var="componts"
						selection="#{acLineFaultReportController.secondSelectedProtectDeviceActionProcessList}"
						value="#{acLineFaultReportController.secondProtectDeviceActionProcessList}"
						rowKey="#{componts.id}" emptyMessage="无记录">
						<p:column selectionMode="multiple"
							style="width:55px;text-align:center" />
						<f:facet name="header">
						     	 保护动作详情
						  </f:facet>
						<p:column headerText="设备类型" width="8%" groupRow="true">
							<p:outputLabel value="#{componts.devType}" />
						</p:column>
						<p:column headerText="设备名称" width="18%">
							<p:outputLabel value="#{componts.devName}" />
						</p:column>
						<p:column headerText="设备型号">
							<p:outputLabel value="#{componts.devModel}" />
						</p:column>
						<p:column headerText="跳A(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','A')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.secondStationEdit}"
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripA}" />
							<p:outputLabel value="#{componts.fTripA}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="跳B(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','B')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.secondStationEdit}"
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripB}" />
							<p:outputLabel value="#{componts.fTripB}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="跳C(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','C')}">
							<p:inputNumber
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripC}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.fTripC}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="重合信号(毫秒)"
							rendered="#{acLineFaultReportController.isShow('reclose','')}">
							<p:outputLabel rendered="#{'主保护'.equals(componts.devType)}"
								style="color:blue;width:99%;border:none;text-align:center"
								value="------" />
							<p:inputNumber
								rendered="#{!'主保护'.equals(componts.devType) and acLineFaultReportController.secondStationEdit}"
								inputStyle="color:blue;width:99%;border:none;text-align:center"
								value="#{componts.recolse}" />
							<p:outputLabel value="#{componts.recolse}"
								rendered="#{!'主保护'.equals(componts.devType) and !acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="跳A(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','A')}">
							<p:inputNumber
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripA}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.fTripC}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="跳B(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','B')}">
							<p:inputNumber
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripB}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.sTripB}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="跳C(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','C')}">
							<p:inputNumber
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripC}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.sTripC}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
					</p:dataTable>
					<p:dataTable id="sbdt" widgetVar="sbdt" var="componts"
						selection="#{acLineFaultReportController.secondSelectedBreakerDeviceActionProcessList}"
						value="#{acLineFaultReportController.secondBreakerDeviceActionProcessList}"
						rowKey="#{componts.id}" emptyMessage="无记录">
						<p:column selectionMode="multiple"
							style="width:55px;text-align:center" />
						<f:facet name="header">
						     	断路器动作详情
						  </f:facet>
						<p:column headerText="设备类型" width="8%" groupRow="true">
							<p:outputLabel value="#{componts.devType}" />
						</p:column>
						<p:column headerText="设备名称" width="18%">
							<p:outputLabel value="#{componts.devName}" />
						</p:column>
						<p:column headerText="设备型号">
							<p:outputLabel value="#{componts.devModel}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','A')}">
							<p:inputNumber
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripA}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.fTripA}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','B')}">
							<p:inputNumber
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripB}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.fTripB}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('first','C')}">
							<p:inputNumber
								inputStyle="color:green;width:99%;border:none;text-align:center"
								value="#{componts.fTripC}"
								rendered="#{acLineFaultReportController.secondStationEdit}" />
							<p:outputLabel value="#{componts.fTripC}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="重合(毫秒)"
							rendered="#{acLineFaultReportController.isShow('reclose','')}">
							<p:outputLabel rendered="#{'主保护'.equals(componts.devType)}"
								style="color:blue;width:99%;border:none;text-align:center"
								value="------" />
							<p:inputNumber
								rendered="#{!'主保护'.equals(componts.devType) and acLineFaultReportController.secondStationEdit}"
								inputStyle="color:blue;width:99%;border:none;text-align:center"
								value="#{componts.recolse}" />
							<p:outputLabel value="#{componts.recolse}"
								rendered="#{!'主保护'.equals(componts.devType) and !acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','A')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.secondStationEdit}"
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripA}" />
							<p:outputLabel value="#{componts.sTripA}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','B')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.secondStationEdit}"
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripB}" />
							<p:outputLabel value="#{componts.sTripB}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
						<p:column headerText="断弧(毫秒)"
							rendered="#{acLineFaultReportController.isShow('second','C')}">
							<p:inputNumber
								rendered="#{acLineFaultReportController.secondStationEdit}"
								inputStyle="color:red;width:99%;border:none;text-align:center"
								value="#{componts.sTripC}" />
							<p:outputLabel value="#{componts.sTripC}"
								rendered="#{!acLineFaultReportController.secondStationEdit}" />
						</p:column>
					</p:dataTable>
					<p:toolbar id="sUploadWaveFileToolbar">
						<f:facet name="left">
							<p:commandButton value="上传录波文件" disabled="#{!acLineFaultReportController.secondStationEdit}"
								icon="ui-icon-arrowreturnthick-1-n" update="form1:msgs dialogForm:uploadWaveFileDialog"
								actionListener="#{waveFileController.resetUploadMsg}"
								rendered="#{s:hasPermission(session,'bhyx_gzda_lbwj_sc')}"
								oncomplete="PF('uploadWaveFileDialog').show()" />
							<p:commandButton value="下载录波文件" icon="ui-icon-arrowthick-1-s" ajax="false"
								rendered="#{s:hasPermission(session,'bhyx_gzda_lbwj_xz')}"
								actionListener="#{waveFileController.prepareDownloadFile(acLineFaultReportController.secondStationDetail.stationId)}">
								<p:fileDownload value="#{waveFileController.downloadFile}" />
							</p:commandButton>
						</f:facet>
					</p:toolbar>
					<p:dataTable id="sWaveFileTable" var="item"
						value="#{waveFileController.getWaveFileByStationId(acLineFaultReportController.secondStationDetail.stationId)}"
						rowKey="#{item.id}" emptyMessage="无记录" rowIndexVar="ite">
						<f:facet name="header">
						     录波文件
						</f:facet>
						<p:column width="2" headerText="序号 " style="text-align:center">
							<h:outputText value="#{ite+1}" />
						</p:column>
						<p:column width="10" headerText="时间">
							<h:outputText value="#{item.triggerSecond.substring(0,19)}">
							</h:outputText>
						</p:column>
						<p:column width="10" headerText="变电站名称">
							<h:outputText value="#{item.stationName}" />
						</p:column>
						<p:column width="10" headerText="装置">
							<h:outputText value="#{item.equipment}" />
						</p:column>
						<p:column width="50" headerText="录波文件">
							<h:outputText value="#{item.path}" />
						</p:column>
						<p:column width="5" headerText="分析状态">
							<h:outputText value="#{item.status}" />
						</p:column>
						<p:column width="5" headerText="文件来源">
							<h:outputText rendered="#{item.dataSource == 0}" value="系统获取" />
							<h:outputText rendered="#{item.dataSource == 1}" value="人工上传" />
						</p:column>
						<p:column width="10" headerText="查看" style="text-align:center">
							<p:commandButton icon="ui-icon-search"
								oncomplete="openWaveDlg('#{item.id}', '#{acLineFaultReportController.secondStationDetail.stationId}','#{item.stationName}','#{acLineFaultReportController.fr.equipment_id}');" />
						</p:column>
					</p:dataTable>
					<p:toolbar id="sUploadFileToolbar" style="margin-top:8px">
						<f:facet name="left">
							<p:commandButton title="上传" disabled="#{!acLineFaultReportController.secondStationEdit}"
								update="form1:msgs dialogForm:uploadAttachmentDialog" icon="ui-icon-arrowreturnthick-1-n"
								value="上传" oncomplete="PF('uploadAttachmentDialog').show()"
								rendered="#{s:hasPermission(session,'bhyx_gzda_gzfj_sc')}">
							</p:commandButton>
							<p:commandButton value="下载" ajax="false"
								disabled="#{acLineFaultReportController.secondStationEdit}"
								rendered="#{s:hasPermission(session,'bhyx_gzda_gzfj_xz')}"
								actionListener="#{acLineFaultReportController.downloadAttachment()}"
								icon="ui-icon-arrowthick-1-s" update="form1:msgs">
								<p:fileDownload value="#{acLineFaultReportController.file}" />
							</p:commandButton>
							<p:commandButton value="删除" disabled="#{!acLineFaultReportController.secondStationEdit}"
								rendered="#{s:hasPermission(session,'bhyx_gzda_gzfj_sc1')}"
								actionListener="#{acLineFaultReportController.deleteAttachment()}" update="sat"
								icon="ui-icon-trash">
								<p:confirm header="提示" message="确定删除选择的记录吗？" icon="ui-icon-alert" />
							</p:commandButton>
						</f:facet>
					</p:toolbar>
					<p:dataTable id="sat" var="componts" widgetVar="sat" rowIndexVar="ite"
						selection="#{acLineFaultReportController.selectedAttachments2}"
						value="#{acLineFaultReportController.attachments2}" rowKey="#{componts.id}" emptyMessage="无记录">
						<f:facet name="header">
						     保护动作报告附件
						</f:facet>
						<p:column selectionMode="multiple" width="10" style="text-align:center" />
						<p:column headerText="序号" width="10">
							<p:outputLabel value="#{ite+1}" />
						</p:column>
						<p:column headerText="名称" width="90">
							<p:outputLabel value="#{componts.name}" />
						</p:column>
						<p:column headerText="缩略图" width="18%">
							<p:graphicImage alt="加载失败" rendered="#{acLineFaultReportController.isPicture(componts)}"
								height="100"
								value="#{request.contextPath}/getServerImage?fullPath=#{acLineFaultReportController.getVirtualPath(componts.path)}" />
						</p:column>
						<p:column width="10" style="text-align: center">
							<p:commandButton icon="ui-icon-search"
								disabled="#{acLineFaultReportController.secondStationEdit}"
								rendered="#{acLineFaultReportController.isPicture(componts)}"
								oncomplete="openImagePage('#{acLineFaultReportController.getVirtualPath(componts.path)}');" />
						</p:column>
					</p:dataTable>
				</p:tab>
			</p:tabView>
		</h:form>
		<h:form id="dialogForm">
			<p:dialog widgetVar="uploadAttachmentDialog" modal="true" id="uploadAttachmentDialog" width="600"
				header="保护动作报告附件上传">
				<p:fileUpload multiple="true" label="选择" uploadLabel="上传" cancelLabel="取消"
					fileUploadListener="#{acLineFaultReportController.handleFileUpload}" mode="advanced"
					update="form1:msgs @this " />
				<p:commandButton icon="ui-icon-disk" oncomplete="PF('uploadAttachmentDialog').hide()"
					style="float:right;" update="form1:stations:fat form1:stations:sat" value="关闭并刷新">
				</p:commandButton>
			</p:dialog>
			<p:dialog widgetVar="faultRangingDialog" modal="true" id="faultRangingDialog" width="350"
				height="200">
				<p:outputPanel id="dialogPanel">
					<span>系统自动生成的主一故障测距为：</span>
					<br />
					<span style="font-weight: bold; font-size: 150%;">#{acLineFaultReportController.firstStationDetail.faultRangingFirst}km</span>
					<span style="color: red">（该数据仅供参考）</span>
					<br />
					<span style="color: red">注： <br />地图显示以人工填写数据为准，无人工填写数据时显示系统自动生成数据。
					</span>
				</p:outputPanel>
			</p:dialog>
			<p:dialog widgetVar="faultRangingDialog1" modal="true" id="faultRangingDialog1" width="350"
				height="200">
				<p:outputPanel id="dialogPanel1">
					<span>系统自动生成的主二故障测距为：</span>
					<br />
					<span style="font-weight: bold; font-size: 150%;">#{acLineFaultReportController.firstStationDetail.faultRangingSecond}km</span>
					<span style="color: red">（该数据仅供参考）</span>
					<br />
					<span style="color: red">注： <br />地图显示以人工填写数据为准，无人工填写数据时显示系统自动生成数据。
					</span>
				</p:outputPanel>
			</p:dialog>
			<p:dialog widgetVar="faultRangingDialog2" modal="true" id="faultRangingDialog2" width="350"
				height="200">
				<p:outputPanel id="dialogPanel2">
					<span>系统自动生成的主三故障测距为：</span>
					<br />
					<span style="font-weight: bold; font-size: 150%;">
						#{acLineFaultReportController.firstStationDetail.faultRangingThird}km</span>
					<span style="color: red">（该数据仅供参考）</span>
					<br />
					<span style="color: red">注： <br />地图显示以人工填写数据为准，无人工填写数据时显示系统自动生成数据。
					</span>
				</p:outputPanel>
			</p:dialog>
			<p:dialog widgetVar="faultRangingDialog3" modal="true" id="faultRangingDialog3" width="350"
				height="200">
				<p:outputPanel id="dialogPanel3">
					<span>系统自动生成的录波测距为：</span>
					<br />
					<span style="font-weight: bold; font-size: 150%;">
						#{acLineFaultReportController.firstStationDetail.rangingWave}km</span>
					<span style="color: red">（该数据仅供参考）</span>
					<br />
					<span style="color: red">注： <br />地图显示以人工填写数据为准，无人工填写数据时显示系统自动生成数据。
					</span>
				</p:outputPanel>
			</p:dialog>
			<!-- 上传录波文件 -->
			<p:dialog widgetVar="uploadWaveFileDialog" position="top" id="uploadWaveFileDialog"
				header="录波文件上传" style="margin-top:50px;" modal="true" width="900" height="620">
				<p:outputPanel id="waveFilePanel">
					<table style="width: 100%">
						<tr>
							<td><small><span class="fa fa-warning" style="color: #f39c12" />
									上传录波文件时，应选择与之对应的录波设备，并<b>同时上传.cfg和.dat文件</b>。右侧可选择全部录波设备。 <br /> <span
									class="fa fa-warning" style="color: #f39c12" /> 如果不是本次故障的录波文件，系统将会系统生成错误的故障数据。 </small></td>
							<td><p:selectBooleanButton style="float:right"
									value="#{waveFileController.showRelatedEquipment}" onLabel="全部录波设备" offLabel="相关录波设备">
									<p:ajax update="waveFilePanel" listener="#{waveFileController.changeWaveEquipmentList}" />
								</p:selectBooleanButton></td>
						</tr>
					</table>
					<p:dataTable var="we" id="waveEquipmentTable"
						value="#{waveFileController.getCurrentWaveEquipmentList(acLineFaultReportController.currentSelectStation)}"
						selection="#{waveFileController.selectedWaveEquipment}" selectionMode="single"
						rowKey="#{we.id}" emptyMessage="无记录" sortBy="#{we.subName}">
						<p:ajax event="rowSelect"
							update="dialogForm:uploadCom dialogForm:uploadMsg dialogForm:waveFilePanel"
							listener="#{waveFileController.onWaveEquipmentRowSelect}" />
						<p:ajax event="rowUnselect"
							update="dialogForm:uploadCom dialogForm:uploadMsg dialogForm:waveFilePanel"
							listener="#{waveFileController.onWaveEquipmentRowUnSelect}" />
						<p:column groupRow="true" headerText="变电站">
							<h:outputText value="#{we.subName}" />
						</p:column>
						<p:column headerText="类型">
							<h:outputText value="#{waveFileController.getWaveEquipmentType(we)}" />
						</p:column>
						<p:column headerText="录波器">
							<h:outputText value="#{we.name}" />
						</p:column>
					</p:dataTable>
					<p:separator />
					<p:fileUpload multiple="true" id="uploadCom"
						disabled="#{waveFileController.selectedWaveEquipment==null}"
						invalidFileMessage="文件扩展名必须是dat或者cfg"
						allowTypes="/(\.|\/)(((c|C)(f|F)(g|G))|((d|D)(a|A)(t|T)))$/" label="选择" uploadLabel="上传"
						cancelLabel="取消" fileUploadListener="#{waveFileController.handleWaveFileUpload}" fileLimit="2"
						sequential="true" fileLimitMessage="文件个数必须是2个" mode="advanced"
						update="form1:msgs  form1:stations:fWaveFileTable form1:stations:sWaveFileTable uploadMsg waveFilePanel" />
					<p:outputLabel id="uploadMsg" style="color:red;font-size:16px;" escape="false"
						value="#{waveFileController.uploadMsg}" />
					<br />
					<p:commandLink id="reBtn" value="继续上传" style="font-size:16px;color:#0080FF;margin-left:5px;"
						rendered="#{waveFileController.btnAvailable()}"
						actionListener="#{waveFileController.reUploadFile}"
						update="form1:msgs  form1:stations:fWaveFileTable form1:stations:sWaveFileTable uploadMsg waveFilePanel" />
					<p:commandLink id="cancleBtn" value="取消上传"
						style="font-size:16px;color:#0080FF;margin-left:30px;"
						rendered="#{waveFileController.btnAvailable()}"
						actionListener="#{waveFileController.cancleUpload}"
						update="form1:msgs uploadMsg waveFilePanel" />
					<br />
				</p:outputPanel>
			</p:dialog>
		</h:form>
		<!-- 更新的时间间隙 -->
		<h:inputHidden id="faultEditTiming" value="#{acLineFaultReportController.timingInteval}"></h:inputHidden>
		<script>
			function back(){
				if(parent &amp;&amp; parent.backFromFaultReportEdit){
					parent.backFromFaultReportEdit();
				}else{
					window.history.back();
				}
			}
			var userDialogIndex;
			var auditorDialogIndex;
			var needDeviceDialogIndex;
			var lastDeviceDialogSrc;
			var protectAccountDialogIndex;
			function openUserChooseDialog(){
				//打开页面
				userDialogIndex = layer.open({
					  type: 2,
					  maxmin :false,
					  area: ['420px', '662px'],
					  fixed: false, //不固定
					  title:'人员选择器',
					  maxmin: true,
					  content: '/ui/common/org_selector_user_single_layer.xhtml'
					});
			}
			function openAuditorDialog(){
				//打开页面
				auditorDialogIndex = layer.open({
					  type: 2,
					  maxmin :false,
					  area: ['420px', '662px'],
					  fixed: false, //不固定
					  title:'人员选择器',
					  maxmin: true,
					  content: '/ui/common/org_selector_user_single_layer.xhtml'
					});
			}
			function dialogReturn(index,data){
				var params = [];
				data = eval("("+data+")");
				if(index == userDialogIndex){
					params.push({name:'className',value:data.className},{name:'userJson',value:data.data});
					onUserDialogReturn(params);
				}else if(index == auditorDialogIndex){
					params.push({name:'className',value:data.className},{name:'userJson',value:data.data});
					onAuditorDialogReturn(params);
				}else if(index == needDeviceDialogIndex){
					params.push({name:'className',value:data.className},{name:'data',value:data.data},{name:'type',value:data.type});
					onDeviceDialogReturn(params);
				}
			}
			//打开设备选择器页面
			function openNeedDeviceDialog(type,deviceId,stationId){
				if(arguments.length == 3){
					var params = "stationId="+ stationId+"&amp;protectionType="+type+"&amp;deviceId="+deviceId;
					lastDeviceDialogSrc = '/ui/common/equipment_selector_faultReport_protectiont_layer.xhtml?'+params;
				}
				needDeviceDialogIndex = layer.open({
					  type: 2,
					  maxmin :false,
					  area: ['610px', '462px'],
					  fixed: false, //不固定
					  title:'设备选择器',
					  maxmin: true,
					  content: lastDeviceDialogSrc
					});
			}
			//打开设备维护页面。此页面的入口在设备选择器页面
			function openProtectAccountDialog(){
				layer.close(needDeviceDialogIndex);
				layer.open({
					  type: 2,
					  maxmin :false,
					  area: ['1250px', '750px'],
					  fixed: false, //不固定
					  title:'设备维护',
					  maxmin: true,
					  content: '/ui/dataview/devicefault/protectAccountDialog.xhtml',
					  cancel : openNeedDeviceDialog
					});
			}
			function alertProtectTip(){
				layer.alert(
						"1、如果该故障报告没有记录保护动作，断路器熄弧信息，系统会默认生成该故障设备相关的所有保护，断路器信息，但动作时间为0。"
						+"&lt;br/&gt;2、保存故障报告时，系统会过滤掉保护动作时间为0及断路器熄弧时间为0的信息。"
						+"&lt;br/&gt;3、如果该故障报告有保护动作，断路器熄弧信息，则只显示动作时间（或熄弧时间）大于0的信息。"
						,
						{
							closeBtn: 0,
							title:false,
							area:['660px']
						});
			}
			function openImagePage(path){
				var link = document.createElement('a');
				link.target = "_blank";
				link.href = '/ui/common/imagePage.xhtml?fullPath='+path;
			    document.body.appendChild(link);
				link.click();
				document.body.removeChild(link);
			}
			function openWaveDlg(fileId, stationId, stationName,lineId) {
				var src = "/ui/waveh5/index.html?fileId=" + fileId
						+ "&amp;stationId=" + stationId + "&amp;lineId="
						+ lineId + "&amp;stationName="
						+ encodeURIComponent(stationName);
				layer.open({
					  type: 2,
					  maxmin :false,
					  area: ['90%', '90%'],
					  fixed: false, //不固定
					  title:'波形查看',
					  maxmin: true,
					  content: src,
					});
			}
			var timingInteval = $('#faultEditTiming').val();
			function editStationPushTiming(){
			if(timingInteval){
				self.setInterval("checkEditPageColsed()",timingInteval);
			}else{
				self.setInterval("checkEditPageColsed()",5000);
			}
			}
		</script>
	</ui:define>
</ui:composition>